# Contributor: Daniel Everett <deverett@gmail.com>
# Maintainer: Daniel Everett <deverett@gmail.com>
pkgname=py3-fido2
_pkgname=${pkgname#py3-}
pkgver=1.0.0
pkgrel=0
pkgdesc="Provides library functionality for FIDO 2.0, including communication with a device over USB"
url="https://developers.yubico.com/python-fido2/"
arch="noarch"
license="BSD-2-Clause AND Apache-2.0 AND MPL-2.0"
depends="python3 py3-cryptography py3-six"
makedepends="py3-setuptools"
checkdepends="py3-cparser py3-mock py3-pyfakefs"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	python3 -m unittest discover -v
}

sha512sums="
778128fb4fd459bd096eb440034a08c8883bfd29dbe834f3affb451032a5d5a22c79ca71be257b3c333a9d9890602558502848e83cd3efab4b6d6762e0622670  fido2-1.0.0.tar.gz
"
